package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.EaEnterpriseFinalistMapper;
import com.ruoyi.system.domain.EaEnterpriseFinalist;
import com.ruoyi.system.service.IEaEnterpriseFinalistService;

/**
 * 企业集采入围Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-01-22
 */
@Service
public class EaEnterpriseFinalistServiceImpl implements IEaEnterpriseFinalistService 
{
    @Autowired
    private EaEnterpriseFinalistMapper eaEnterpriseFinalistMapper;

    /**
     * 查询企业集采入围
     * 
     * @param id 企业集采入围主键
     * @return 企业集采入围
     */
    @Override
    public EaEnterpriseFinalist selectEaEnterpriseFinalistById(Integer id)
    {
        return eaEnterpriseFinalistMapper.selectEaEnterpriseFinalistById(id);
    }

    /**
     * 查询企业集采入围列表
     * 
     * @param eaEnterpriseFinalist 企业集采入围
     * @return 企业集采入围
     */
    @Override
    public List<EaEnterpriseFinalist> selectEaEnterpriseFinalistList(EaEnterpriseFinalist eaEnterpriseFinalist)
    {
        return eaEnterpriseFinalistMapper.selectEaEnterpriseFinalistList(eaEnterpriseFinalist);
    }

    /**
     * 新增企业集采入围
     * 
     * @param eaEnterpriseFinalist 企业集采入围
     * @return 结果
     */
    @Override
    public int insertEaEnterpriseFinalist(EaEnterpriseFinalist eaEnterpriseFinalist)
    {
        eaEnterpriseFinalist.setCreateTime(DateUtils.getNowDate());
        return eaEnterpriseFinalistMapper.insertEaEnterpriseFinalist(eaEnterpriseFinalist);
    }

    /**
     * 修改企业集采入围
     * 
     * @param eaEnterpriseFinalist 企业集采入围
     * @return 结果
     */
    @Override
    public int updateEaEnterpriseFinalist(EaEnterpriseFinalist eaEnterpriseFinalist)
    {
        eaEnterpriseFinalist.setUpdateTime(DateUtils.getNowDate());
        return eaEnterpriseFinalistMapper.updateEaEnterpriseFinalist(eaEnterpriseFinalist);
    }

    /**
     * 批量删除企业集采入围
     * 
     * @param ids 需要删除的企业集采入围主键
     * @return 结果
     */
    @Override
    public int deleteEaEnterpriseFinalistByIds(Integer[] ids)
    {
        return eaEnterpriseFinalistMapper.deleteEaEnterpriseFinalistByIds(ids);
    }

    /**
     * 删除企业集采入围信息
     * 
     * @param id 企业集采入围主键
     * @return 结果
     */
    @Override
    public int deleteEaEnterpriseFinalistById(Integer id)
    {
        return eaEnterpriseFinalistMapper.deleteEaEnterpriseFinalistById(id);
    }
}
